<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>index</title>
    <!-- 引入Vue -->
    <script type="text/javascript" src="../../vue.js"></script>
  </head>
  <body>
    <!-- 准备好一个容器-->
    <div id="demo">
      账号：<input type="text" v-model="account"> <br><br>
      密码：<input type="password" v-model="password"> <br><br>
      性别：
        男<input type="radio" name="gender" v-model="sex" value="male"> 
        女<input type="radio" name="gender" v-model="sex" value="female">
      <br><br>
      爱好：
        台球<input type="checkbox" v-model="hobby" value="taiqiu">
        唱歌<input type="checkbox" v-model="hobby" value="sing">
        洗澡<input type="checkbox" v-model="hobby" value="xizao">
      <br><br>
      所属校区：
        <select v-model="city">
          <option value="beijing">北京</option>
          <option value="shenzhen">深圳</option>
          <option value="shanghai">上海</option>
          <option value="xian">西安</option>
          <option value="wuhan">武汉</option>
          <option value="chengdu">成都</option>
        </select>
      <br><br>
      其他信息：<textarea v-model="other"></textarea>
      <br><br>
      <input type="checkbox" v-model="agree">
      阅读并接受<a href="#">《用户协议》</a>
      <br><br>
      <button>提交</button>
    </div>

    <script type="text/javascript">
      new Vue({
        el:'#demo',
        data:{
          account:'',
          password:'',
          sex:'',
          hobby:[],
          city:'chengdu',
          other:'',
          agree:false
        }
      })
    </script>
  </body>
</html>